package api

import (
	"gin/api/handler"
	"gin/api/middlewere"

	"github.com/gin-gonic/gin"
)

func Run(router *gin.Engine) {
	Origin := router.Group("/")
	Origin.Use(middlewere.OriginMiddleware())
	Origin.GET("/class_type/find", handler.ClassTypeFind)
	Origin.GET("/class_type/index", handler.ClassTypeIndex)
	Origin.POST("/class_type/update", handler.ClassTypeUpdate)
	Origin.POST("/class_type/create", handler.ClassTypeCreate)
	Origin.POST("/class_type/delete", handler.ClassTypeDelete)
}
